package com.mmd.admin.model.pojo.request.mer;

import com.mmd.base.annotation.MobileValid;
import com.mmd.core.constant.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("MER-机构端忘记密码参数")
public class MerForgetWordParam {
    @NotBlank(message = "账号不可为空", groups = {ValidGroup.Password.class, ValidGroup.Code.class})
    @MobileValid(message = "账号或密码错误", groups = {ValidGroup.Password.class, ValidGroup.Code.class})
    @ApiModelProperty("登录账号")
    private String phone;
    @NotBlank(message = "验证码不可为空", groups = {ValidGroup.Password.class, ValidGroup.Code.class})
    @Length(min = 6, max = 6, message = "验证码错误", groups = {ValidGroup.Password.class, ValidGroup.Code.class})
    @ApiModelProperty("验证码")
    private String secretKey;
    @NotBlank(message = "新密码不能为空", groups = {ValidGroup.Password.class, ValidGroup.Code.class})
    @Length(min = 6, max = 18, message = "账号密码或验证码错误", groups = {ValidGroup.Password.class, ValidGroup.Code.class})
    @ApiModelProperty("新密码")
    private String passWord;
}
